package cn.xzq.crm.dao;

import java.util.List;

import cn.xzq.crm.entity.Customer;

public interface CustomerDao {
	/**
	 * 添加一个客户
	 * @param customer
	 */
	public void add(Customer customer);

	/**
	 * 查找所有客户	
	 * @return
	 */
	public List<Customer> findAll();
	
	/**
	 * 删除一个客户
	 * @param custId
	 */
	public void delete(Customer customer);
	
	/**
	 * 根据id查找一个客户
	 * @param custId
	 */
	public Customer findOneById(String custId);
	
	/**
	 * 更新用户信息
	 * @param custId
	 */
	public void update(Customer customer);

	/**
	 * 查找分页数据
	 * @param begin
	 * @param pageSize
	 * @return
	 */
	public List<Customer> findbyPageBean(int begin, int pageSize);


	/**
	 * 查找记录数
	 * @return
	 */
	public int findAllCount();

	/**
	 * 条件查询
	 * @param customer
	 * @return
	 */
	public List<Customer> findAllByCondition(Customer customer);

	/**
	 * 多条件组合查询
	 * @param customer
	 * @return
	 */
	public List<Customer> findMoreCondition(Customer customer);
	
}
